<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 输入半径,显示圆的周长和面积
        var radius;
        radius = prompt('请输入圆半径');
        console.log(`圆的半径是${radius},周长为${Number(radius) * 2 * 3.14} , 面积为${Number(radius) * Number(radius) * 3.14}`);
        alert(`圆的半径是${radius},周长为${Number(radius) * 2 * 3.14} , 面积为${Number(radius) * Number(radius) * 3.14}`);

    </script>
</head>

<body>

</body>

</html>